package be.sc.classicnetwork.dao;

import org.acegisecurity.userdetails.UserDetails;
import org.acegisecurity.userdetails.UsernameNotFoundException;

import be.sc.classicnetwork.model.User;

/**
 * User DAO.
 * 
 */
public interface UserDao extends GenericDao<User> {
    /**
     * Loads the specified User.
     * 
     * @param username
     * @return
     * @throws UsernameNotFoundException
     *                 if the User is not found in the DB
     */
    UserDetails loadByUsername(String username);
}
